<!doctype html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
    <title>小喵很忙地图</title>
    <link rel="stylesheet" href="https://a.amap.com/jsapi_demos/static/demo-center/css/demo-center.css" />
    <style>
        html,
        body,
        #container {
            height: 100%;
            width: 100%;
        }

        .custom-input-card {
            padding: 5px 0px;
            height: 150px;
        }

        .input-item {
            width:250px;
            font-size: 14px;
        }
    </style>
</head>

<body>
    <div id="container"></div>
    <script type="text/javascript"
        src="https://webapi.amap.com/maps?v=2.0&key=d988377e4a43e4bb2e78d68d33ee1416"></script>
    <script type="text/javascript">
        var infoWindow;
        var map = new AMap.Map("container", {
            resizeEnable: true,
            center: [113.13,28.20],
            zoom: 16
        });

        //构建信息窗体中显示的内容
        var info = [];
        // info.push("<div class='input-card content-window-card'><div><img style=\"float:left;width:67px;height:16px;\" src=\" https://webapi.amap.com/images/autonavi.png \"/></div> ");
        info.push("<div class='custom-input-card'><p class='input-item'>零食门</p>");
        info.push("<p class='input-item'>联系电话 : 400-0236-986</p>");
        info.push("<p class='input-item'>地址 :湖南省长沙县中部智谷产业园三期10栋13层</p></div>");

        infoWindow = new AMap.InfoWindow({
            content: info.join("")  //使用默认信息窗体框样式，显示信息内容
        });

        infoWindow.open(map, map.getCenter());
    </script>
</body>

</html>